home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: miker3@ix.netcom.com (Mike Rubenstein)
- Newsgroups: comp.lang.c
- Subject: Re: fflush and Visual C++
- Date: Sat, 16 Mar 1996 19:33:49 GMT
- Organization: Netcom
- Message-ID: <314b173b.71056173@nntp.ix.netcom.com>
- References: <4idhv5$dnv@news.mhv.net>
- NNTP-Posting-Host: ix-dc8-04.ix.netcom.com
- X-NETCOM-Date: Sat Mar 16 11:34:07 AM PST 1996
- X-Newsreader: Forte Agent .99d/32.182
-
- Vinny.Bedus@bbs.mhv.net (Vinny Bedus) wrote:
-
- > Can someone please tell me why when fflush function is used in Visual C
- > under a dos box it doesn't work? I have no problems with turbo c for win
- > but anything else and it doesn't flush the stdin buffer.
- > any ans??????????????
-
- Perhaps because Visual C implements fflush() correctly. fflush() does
- not flush input buffers. fflush() with stdin as an argument results
- in undefined behavior.
-
- Michael M Rubenstein
-